import React, {PropsWithChildren, useState} from 'react'
import EditHomeAppliancePage from "../components/EditHomeAppliancePage";
import {useLoad} from "@tarojs/taro";

export interface EditHomeApplianceProps extends PropsWithChildren {

}

const EditHomeAppliance: React.FC<EditHomeApplianceProps> = ({}) => {
    const [id, setId] = useState<number>()
    useLoad((params) => {
        setId(parseInt(params.id))
    })
    return <>
        <EditHomeAppliancePage id={id}/>
    </>
}

export default EditHomeAppliance


